const registerRouter = require('./backend/router')

module.exports = {
  lintOnSave: false,
  devServer: {
    before(app) {
      registerRouter(app)
    }
  },

    configureWebpack: {
        module:{
            rules:[{
                test:/\.mjs$/,
                include:/node_modules/,
                type:'javascript/auto'
            }]
        }
    },

  productionSourceMap: false,
  publicPath: process.env.NODE_ENV === 'production' ? '/music-next/' : '/',
}


